UtilsLibraries
Overview
Additional external third party libraries that are provided as utilities in the Pyramid Api.
- From version: 2020.20
Properties
fetch
fetch: object
A Promise-based mechanism for programmatically making web requests in the browser. A polyfill that implements a subset of the standard Fetch specification, enough to make fetch a viable replacement for most uses of XMLHttpRequest in traditional web applications. For more information: https://www.npmjs.com/package/whatwg-fetch
const fetch = cvApi2.externalLibraries.utils.fetch;
lodash
lodash: object
A modern JavaScript utility library delivering modularity, performance and extras. For more information: https://lodash.com/
const lodash = cvApi2.externalLibraries.utils.lodash;
moment
moment: object
A date library for parsing, validating, manipulating, and formatting dates. For more information: https://www.npmjs.com/package/moment
const moment = cvApi2.externalLibraries.utils.moment;
numeral
numeral: object
A javascript library for formatting and manipulating numbers. For more information: https://www.npmjs.com/package/numeral
const numeral = cvApi2.externalLibraries.utils.numeral;
tinycolor
tinycolor: object
TinyColor is a library for color manipulation and conversion. It allows mobject forms of input, while providing color conversions and other color utility functions. For more information: https://www.npmjs.com/package/tinycolor2
const tinycolor = cvApi2.externalLibraries.utils.tinycolor;
const rgbString = tinycolor(newColor.rgb).toRgbString();
uuid
uuid: object
create a random UUID For more information: https://www.npmjs.com/package/uuid
const newUuid = cvApi2.externalLibraries.utils.uuid();